Fix opening program boxes at public search

- user isn't defined when using public search. Retrieve it safely.