Fix for 'all' query containing empty where condition

Latest version of jugglingdb did not seem to like having an empty where condition provided when retrieving all items. Fix tested against `jugglingdb-redis`