Tag references and data references are now sanity-checked by the extractor to prevent crashing