Fix handling of errors other than 'tag not found' in new custom tag check