Run null check on provider when deleting