[BUGFIX] fixed issue with unsubscribing a null handle

[BUGFIX] fixed issue with unsubscribing a null handle