Handling diags pointing to content not in file

Also handling no location_extent for diags.