fix for caching empty result sets.