gh-910

yeah. the issue here was that the first section, containing 'before', wasn't finding an anchor node to insert its content in front of (i.e. `parentNode.insertBefore(docFrag,anchor)`), because when `currentStep` was equal to 1, the section that immediately followed it didn't contain any nodes. So when the parent fragment said 'section, what is your first node?' it returned `undefined` - now it falls through to its next sibling until it finds the anchor.

So before the fix, 'before after' became 'after before' - that's what I was checking for, not the specific content of the if/else block.