Another attempt. Solve potential wasted query in get_user()

Just added an if to the else and a return to catch the uid being 0