Bug 847178 - Avoid exceptions in CryptoRecord.fromJSONRecord. r=rnewman