Fix possible NPE if the null class loader is searched