Open the level.dat file - find out if there is "the_end" dimension or not. Create a new test world, copy end dimension data from it level.dat file, and paste it to the "old" worlds level.dat file. Remove level.dat_old if needed.
After a restart the DIM1 folder should be generated.