Changed the NullRelation so that when count is called with #group it wil...

Closes #14721 

...l properly return an empty hash instead of zero. Fixes issue https://github.com/rails/rails/issues/14721.