Fix crashing when getting user sex error.