Fixed emitData bug

Fixed a bug with emitData breaking when no options are provided; now
only works with Node v0.8 and above