Fixes an error introduced in commit ba42c183
Fixes: #2669 forceSSL doesn't work