Fixes to IE and Firefox errors on unSubscribe

The fixes must resolve the errors thrown on unsubscribe operations with both IE and Firefox.