Merge "Make NativeBN's error-handling more robust."