Fix Nether Portal and End Platform creation.

Based on commits by reo7sp.