Made changes as per code-review feedback

- Added null and empty checks to Group and Client methods in HubContext
 #1660