Make the error handling more defensive.
Make the error handling more defensive.

mcanthony/ShareJS,kustomzone/ShareJS,erpframework/ShareJS,playcanvas/ShareJS,freewind/ShareJS,igmcdowell/ShareJS,dialoghq/ShareJS,gdseller/ShareJS,modulexcite/ShareJS,ceros/ShareJS,gdseller/ShareJS,Nzaga/ShareJS,playcanvas/ShareJS,share/ShareJS,kantele/k-share,dialoghq/ShareJS,igmcdowell/ShareJS,luto/ShareJS,rasata/ShareJS,matthewbauer/ShareJS,ceros/ShareJS,dialoghq/ShareJS,rchrd2/ShareJS,a0x/ShareJS