[ticket/13064] Validate the migrations provided to migrator::set_migrations()

PHPBB3-13064