Fix a crash in migrations if the table doesn't exist