Added checks for null and empty values in the Send and Group methods in Hub and Persistent Connection

#1265