Fixes: #2847 Members wrongly listed in group

when there is a template uid contains a | it's then wrongly searched by
the group in which it's in