Clear error/warning of CBN after undo

This submission is to fix MAGN-2378: Warning don't get cleared after resolving code error.