Fix routeHook callback context

The context wasn't the same depending on the way we listen the `update` hook.
Now it applies `$root` as context to the hook handler.