[NUCCORE-1188] Adjust processing of exclude-unlisted-classes to accept
the text in the element