Fix issue with undefined translations variable.

If the view doesn't use RequestContext the `translations` variable won't
exist, and the `dictsort` filter will raise and exception.