Fixed subtle routing bug.

Bracket closing was being set incorrectly due to startpoint_prev === null being false when startpoint_prev was undefined.