Wrap native extension in try/catch to avoid error in Safari 7.1