Bug 862740 set httpd port to any valid port if set to -1

From Kusanagi Kouichi