Handled case that friends are not in cache when looking at the friend list
(which can happen when you look at friends of friends, your own friends
are persistent).
Removed unnecessary variable.