Fixed is_https() to avoid incorrect detection.

Updated is_https() to avoid "NULL" or "0" values in $_SERVER['HTTPS'] to enable HTTPS when base_url is not set.