Fix Exception in Queries with totals use case
The lookup on the Enum, added in c350e4f7, handles the case
where there is no special grouping (ie, normal Qitem grouping),
by catching a KeyError.
However, the failed Enum lookup throws a ValueError, resulting in:
<class 'ValueError'> 'Q6364924' is not a valid GROUP_MAPPING