Handle NumberFormatException in parsing the friendKey.

In some cases, when adding a ToxID, the app rises a NumberFormatException. (see the log below)

http://pastebin.com/WKYJMv4R

Just added a try and catch block to fix this.