[log] Register disposable right away, not after initialization
(cherry picked from commit 1e48680)
[log] IDEA-117365 Expect "empty" git tag; protect against errors

* Handle the case described in IDEA-117365: a tag reference without
  tag name. Just skip those tags, at least until their origin is
  investigated.
* Protect against more possible exceptions from the tag parsing:
  don't fail to provide data to the log, just skip tags and report
  the error.
(cherry picked from commit a114ad8)