Added some checks to avoid NPEs
Added code to remove unavailble ChromeCast devices, but they should be automatically removed in case of communication errors