Fixes #301. Avoids expression execution exceptions being ignored in javascript/dart inlining.