BENTO-33. Prevent an NPE by not setting JAVA_HOME to null.

reviewer: milo, kiyan