Disable undo/redo when there are no journal entries in that direction, fixes #207