The iron golem disappeared when upgrading my world from 1.14 to 1.15
It seems that entities can not be placed on fences, walls and fence gates (such as boats and armor stands
Confirmed in 1.16.5
It also happens on 1.12.2
The iron golem disappeared when upgrading my world from 1.14 to 1.15