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