CONN-483: Fixed the code to handle errors if target does not have QD Service.

Fixed the code to handle errors if target does not have QD Service.