Fix for isHttpsRedirect null checks.