core: don't remove empty catch blocks