XWIKI-10810: Use JAVA_HOME if the user has set it instead of searching in the registry

shouldn't this be unindented?