Reset packet state before handing control to user
Reset packet state before handing control to user

The connection will be in an invalid state if the event handler
throws an exception.

AdySan/MQTT.js,itavy/MQTT.js,wesley1001/MQTT.js,daliworks/MQTT.js,RangerMauve/MQTT.js,jdiamond/MQTT.js,bqevin/MQTT.js,authere/MQTT.js,jaambee/MQTT.js,1248/MQTT.js,mcanthony/MQTT.js,yunba/MQTT.js