Only add the hook back if ergoemacs-mode is enabled.  Related to Issue #155.
Fix undo-tree to work with ergoemacs-mode.  See Issue #155.