Added functionality in getOutgoingFriendRequests and
getIncomingFriendRequests to fix a bug.