Fixes error accoring to node's API reference

I was getting the following error:
```
TypeError: Cannot read property 'port' of null
    at Object.module.exports.create (/home/emilsedgh/node_modules/node-phantom/node-phantom.js:62:28)
```
According to [0], server.address() should only be called after server emits 'listening' event.