XWIKI-9261: Failure to find word if not separated by space from the next one
* Fix the build.
(cherry picked from commit 9fca8ab076ea917d1bc4b6b0cd1adbf345df9f74)