Handle NumberFormatException in parsing the friendKey.