fix wrong variable name
use new method $oTag->extractFirstElement()

• to make this recurring task easier
• fix tracking references, have to be tracked before the editor content is parsed