[Android] Make sure our calls to native are protected in a try/catch blo...

...cks

This is following practice of upstream.