Only display message when a tag isn't new when updating TeX code

See comments on #18
Check whether tag exists before giving an 'updated' message

As explained in #18
When a tag is new None is returned by the database handler, fix this

Fixes an issue raised in the comments of #18