Fix #243: skip empty buffers

This is a workaround for a #5715 in joyent/node