migrations: Avoid NPE on skipped join tables.