add fallback #get_protected_host methods incase the host is registerd to an appliance that isn't running and shows as offline.
Semi-please the Rubocop