Bug fix. When a tag does not have a closing tag, such as [*], calculating the transformed offset was not calculating correctly.
We were leaving the tagEnd at 0 when there was not a closing tag to indicate this condition. This causes problems when calculating the offset in the transformed result.

Now when we don't have a closing tag, the tagEnd will be set to the bodyBegin.