Fix issue #259: Error message when iRevert is used on out of scope variable Closes #259 See merge request !301