Fix for when tag.text is None

Missed this