[#1788] Fix Play is failing in SSL mode