Fixed 'server not defined' error when passing httpPort command line option

Because I accidentally'd the wrong branch.