Add a check if a person has friends.

In cases of not having friends an error in template occurred
caused by an unset array after homeAction of Xodx_UserController.