Add Sentry#captureUncaughtException()

This is useful when you have a thread managed by JNI and an exception
occurs there.
Fix crash caused by logging statement

Message may be null for the case of NullPointerException.