fix possible assertion when evaluating restriction relations:
set flag before checking if type was deleted



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