Fixed NPE when loading old style plugins