Fix a routine to fetch a tag in dynamic publishing. bugid:109398