Correctly identify HubExceptions with null ErrorData on the clients

#2376
Updated HubException related tests to address code review comments

#2376