Fixed a payload issue

Message ID was being read for qos 0 messages, which is not the intended
way according to MQTT. Should only read ID for QoS > 0 now.