Override __getitem__ in RenderContext (#21639)

Fix inconsistent access to items in RenderContext.

See https://code.djangoproject.com/ticket/21639