Return nil when trying to get the tag name for an unknown node instead of crashing