Add-on EZP-21731: Some parts of eZ Publish use a loose test for checking for SSL

Further simplifications.

Signed-off-by: Guillaume <glecerf@gmail.com>