Fixed null pointer error on null user id when fetching avatar