Fix history with errors bug
Fix history with errors bug

Previously, history would not be recorded when an error occurred. This
led to some unintuitive behavior. Now, errors are recorded in history,
and undo/redo works better.

ravichugh/sketch-n-sketch,ravichugh/sketch-n-sketch,ravichugh/sketch-n-sketch,ravichugh/sketch-n-sketch,ravichugh/sketch-n-sketch,ravichugh/sketch-n-sketch