Fixed NullPointerException in CastServiceChannel