Fixed Bug #66094 (unregister_tick_function tries to cast a Closure to a string)