Fix for update registration callback error.
Fix for update registration callback error.

ARMmbed/mbed-client,tridonic-com/mbed-client,tridonic-com/mbed-client,ARMmbed/mbed-client,ARMmbed/mbed-client,tridonic-com/mbed-client