Fixed misplacement of secureServer.listen that was causing it to be used even if a secureServer is not in the configuration.