After killing the Ender Dragon gateway did not appear. After that i tried to reset the values in level.dat file (DragonsKilled and PreviouslyKilled) and kill the dragon again but that didn't help either. On a separate backup i tried to kill the dragon multiple times; none of the gateways appeared. gateways placed by /setblock work fine.
Dupe of MC-184482