Unregister from undefined indications does not use correct length when returning Invalid Parameter error