Because is_ssl is only available after the "Build objects" phase,
this hack takes care not only for the test to pass, but also makes sure
we are not redirecting to http if we are on https.