Bug 916229 - proposing a patch to fix the bug.

Could you please re-add the indentation here? Since the context passed to the render function is now quite big already, it would also make sense to defined it as a separate variable called `context` before.