Fixed 'server not defined' error when passing httpPort command line opti...

...on.