Added a null check for the Send and Group methods in Hub and Persistent Connection

- Added the corresponding unit tests for the null cases

#1265
Made changes as per code review feedback

#1645
Merge pull request #1645 from SignalR/null-check-hub

Added a null check for the Send and Group methods in Hub and Persistent Connection