XWIKI-8719: Count filter doesn't work if the query statement starts with whitespace
(cherry picked from commit 7d6b53a9c3f62317aad55cc4f9bacba6b810d04d)