hooks/pre-push: Do not check the tags too soon

Fix an issue with a missing conditional. The tags were being checked
even though they were not supposed to be checked.

Change-Id: 55f4baa47f
Story-Id: SF-89