Exception handling for nullreference in signalr