Handle undefined write() callback
npm publish 0.2.1