resolveTags: support empty set of tags

We need this to clear tags.