Added error handling for a friend request with an invalid app