Actually this is a bug. It should be:

    context.watch(handler)

and should go first.