fix an error situation when user cancels add a record action while a record on maintenance panel has been modified.
Authored by: SeanZ 2013-03-27
Parent: [r7059]
Child: [r7061]