Highlighting: small performance fix

test if highlight_tags is being used at all before the filter p|has_tags is called.