AMBARI-5182. Retrieve registered host from API throws exception (dlysnichenko)