Fix HTTPS detection for ROOT_ABSOLUTE_URL_PATH

HTTPS will be defined but empty in most HTTP cases: http://www.php.net/manual/en/reserved.variables.server.php