TMDM-7070: Error when set subelement "Is Empty Or Null"

Fixes incorrect behavior when a condition (other than compare) is on a field *and* this field is not part of the projected elements.
Adds unit test to cover issue.