Small condition change in findMatchingTag.