Fix problem in replace step building
Fix problem in replace step building

FIX: Fix crash in building replace steps for open-ended slices with
complicated node content expressions.

Improves patch 9dc2e700, which was an earlier attempt to handle this.

Issue nytm/cms-prosemirror#162

ProseMirror/prosemirror-transform