Fix Error 500 when searching for a comment in a project snippet Closes #14764. /cc @stanhu, and thank you for the spec! ;) See merge request !3468 Signed-off-by: Rémy Coutable <remy@rymai.me>