[ticket/12426] Rework of user search
Adding isset() condition to reduce debug

There were some debug Notice that could be failing in travis.
Tring to resolve it.

PHPBB3-12426