Fix segfault when ~user not found