Caches were not hit if there was no result #2358

When mass fetching from DB but didn't get any result, any subsequent call
missed the cache, and attempted to re-fill the cache. This lead to extremely
poor performance for a questionnaire without any Rule (such as the one created
via /browse/chart)