Fix EZP-21906: Search API returns wrong number of total objects with content having multiple locations
EZP-21906: Added regression test
Merge pull request #640 from ezsystems/fix_EZP-21906_wrongTotalCountSearchQuery

Fix EZP-21906: Search API returns wrong number of total objects with content having multiple locations