fixes null check on tag extractor