[#1788] Fix Play is failing in SSL mode

[LightHouse #1788](http://play.lighthouseapp.com/projects/57987-play-framework/tickets/1788-play-is-failling-in-ssl-mode)