Don't set JAVA_HOME unless node.java is present

The `travis_build_environment` should not break if there's no java config.