I have built an iron farm on my survival world and found that sometimes the golems a able to spawn where the zombie is even though there are no spawnabe blocks in that area. This has also effected a lot of other people who have built this iron farm too.
This is the area where the iron golem spawned in:
[media]
Your screenshot didn't attach correctly, please try adding it again