[xwiki-notifications] [xwiki/xwiki-platform] c55426: XWIKI-22718, XWIKI-22691: Improve query validation