We shouldn't add lastTag.sourceLength here since it is not the closing tag of the startTag. We're just auto closing an unclosed tag when we find a different start tag here.