Add check to not use filter if no values provided

The filter should not be used if the query parameter is
not used. This was causing problems with deleting.
Merge pull request #166 from WorldBank-Transport/feature/fix-aggregation-filter

Add check to not use filter if no values provided