[geany/geany] db1b05: Update doc->priv->tag_tree_dirty only if doc is set