Do not rescue java.lang.Error using StandardError

This in effect injects java.lang.Error as a subclass of Ruby Exception, instead of StandardError as was previously the case.

This fixes #1696