Fix #243: skip empty buffers

This is a workaround for a #5715 in joyent/node. Apparently, this was already reported by @tim-smart.