Fixing a corner case in exception handling.

We now ensure that native methods do not accidentally return when they
trigger an exception.