Fix for Bug NMS-6629

If Jetty HTTP is enabled in opennms.properties, the WebUI doesn't work
with SSL.

The solution is not 100% bulletproof, but it works.
[bamboo] Automated branch merge (from 1.12:ac5833711b64eb48e647b3844d46a67d87addbb9)