fix: check for NPE before removing pre-existing tags
Merge pull request #1 from weddingparty/npe_fix

fix: check for NPE before removing pre-existing tags