StatementTransformer #1887: deal with erasure in try resources
Test for #1887: nothing in try