Allow 0 as the value of a tag

Addresses #1975.