Abort migration if new modeldao doesn't exist
Copying Michi's fix in master.