Prevent crash in undo/redo commands when history is empty
Prevent crash in undo/redo commands when history is empty

FIX: Fix crash in undo or redo commands when the history is empty.

ProseMirror/prosemirror-history