Bug 369672 -[client] Git log: tagging failed but no error was displayed
diff --git a/bundles/org.eclipse.orion.client.git/web/orion/git/gitCommands.js b/bundles/org.eclipse.orion.client.git/web/orion/git/gitCommands.js
index 8dd86f4..1160460 100644
--- a/bundles/org.eclipse.orion.client.git/web/orion/git/gitCommands.js
+++ b/bundles/org.eclipse.orion.client.git/web/orion/git/gitCommands.js
@@ -1276,13 +1276,11 @@
 					}
 					serviceRegistry.getService("orion.git.provider").doAddTag(item.Location, tagName).then(
 						function(jsonData, secondArg) {
-							if (explorer.changedItem) {
-								dojo.hitch(explorer, explorer.changedItem)();
-							} else {
-								var trId = jsonData.Location.replace(/[^\.\:\-\_0-9A-Za-z]/g, "");
-								var tr = dojo.byId(trId);
-								dojo.place(document.createTextNode(tagName), dojo.create("p", {style: "margin: 5px"}, tr.children[6] /* tags column */, "last"), "only");
-							}
+							dojo.hitch(explorer, explorer.changedItem)(item);
+							var trId = jsonData.Location.replace(/[^\.\:\-\_0-9A-Za-z]/g, "");
+							var tr = dojo.byId(trId);
+							if(tr)
+								dojo.place(document.createTextNode(tagName), dojo.create("p", {style: "margin: 5px"}, tr.children[5] /* tags column */, "last"), "only");
 						},
 						function (error){
 							var display = [];
@@ -1293,7 +1291,7 @@
 							serviceRegistry.getService("orion.page.message").setProgressResult(display);
 						});
 					return clientDeferred;
-				}, 4);
+				}, 3);
 			},
 			visibleWhen : function(item) {
 				return item.Type === "Commit";