Adds defensive return for unexpected contexts

When a 500 error happens and we don't have access to some of the
context variables that would power this tag, it blows up with a reduce
exception:

    TypeError: reduce() of empty sequence with no initial value