Fix crash during mouse selection
Fix crash during mouse selection

FIX: Fix a regression where mouse selection would sometimes raise an
error.

Issue prosemirror/prosemirror#543

ProseMirror/prosemirror-view