Declare queue before parse json message
Declare queue before parse json message

This patch fixes the occurrence of memory leak on functions
cloud_register_device, cloud_unregister_device and cloud_list_devices
due json_object isn't freed if function amqp_declare_new_queue raises
an error.

CESARBR/knot-service-source,CESARBR/knot-service-source,CESARBR/knot-service-source,CESARBR/knot-service-source,CESARBR/knot-service-source