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

https://tracker.phpbb.com/browse/PHPBB3-13064

PHPBB3-13064