pass template registry to subscription.on_template to make sure we use the right template registry