nodejitsu/pkgcloud — pull request #194 by rosskukulinski (2013-11-05 06:31:57+00:00)
Title: Fix error creating server with invalid image

While working on multi-pkgcloud, I noticed that Rackspace createServer doesn't handle invalid image IDs. Rather than responding with an error, it simply responds with nothing!

In pkgcloud, we see this:

```
TypeError: Cannot read property 'server' of undefined
at /Users/rossk/dev/opensource/multi-pkgcloud/node_modules/pkgcloud/lib/pkgcloud/openstack/compute/client/servers.js:133:14
at Request._callback (/Users/rossk/dev/opensource/multi-pkgcloud/node_modules/pkgcloud/lib/pkgcloud/core/base/client.js:166:14)
at Request.self.callback (/Users/rossk/dev/opensource/multi-pkgcloud/node_modules/pkgcloud/node_modules/request/index.js:148:22)
at Request.EventEmitter.emit (events.js:98:17)
at Request. (/Users/rossk/dev/opensource/multi-pkgcloud/node_modules/pkgcloud/node_modules/request/index.js:886:14)
at Request.EventEmitter.emit (events.js:117:20)
at IncomingMessage. (/Users/rossk/dev/opensource/multi-pkgcloud/node_modules/pkgcloud/node_modules/request/index.js:837:12)
at IncomingMessage.EventEmitter.emit (events.js:117:20)
at _stream_readable.js:920:16
at process._tickCallback (node.js:415:13)
```

This handles this odd case.