Fix error when createServer() called with no arguments.

Previous code tried to access 'server' property of undefined.