fixes #17301: handle text node in query lite match function

added unit test coverage