Added extra check for detecting https on load balanced servers

This addresses issue #3225