fix profile page crash when no session user id is set