[BZ-1027120] avoid NPE creating rete tree when a constraint doesn't have a field value
(cherry picked from commit 350b1daf8b9ff4b4d0e21d3d31307f900fb9a9cd)