Check value of tag is True before adding it

Refs openhealthcare/elcid#350
Tidy up a bit.

Refs openhealthcare/elcid#350
Merge pull request #234 from openhealthcare/350-tagging

Check value of tag is True before adding it