Fixing a possible index-out-of-bouds-exception if the friend list is empty.

"&cfriendlist[0]" may not exist.