Corrects firstItemCount for empty result sets

Fix for issue #6808