simplify code, reduce number of getTag() calls 

no change in output expected

git-svn-id: http://svn.mkgmap.org.uk/mkgmap/trunk@3234 25d90789-57f7-4ee0-8453-03a3dfeeeb22