Fixed #21014 -- Fixed gobbled ImportError in MigrationLoader.
Fixed #21015 -- Fixed MigrationLoader when importlib.import_module returns a file module or an empty directory.