NPE fixed in language imports checker