XWIKI-11000: Filtering by a long type property field you will have an error

(cherry picked from commit 43ba35fc1edd086b1455a47a904b880cc1542074)