fix NPE when nailgun classes are in the boot classpath.  Weird case hit by a JRuby user.