search: Ensure we have a user before fetching repo groups
Created by: ryanslade
It's possible that we are searching as a non authenticated user in which case we should not try to fetch repo groups for that user.
If we do, we actually default to searching ALL repos since a UserID of zero is equivalent to no filtering.