Clear undo history after initial populate

Fixes #2095
Merge pull request #2118 from jsbin/fix/2095

Clear undo history after initial populate