[DROOLS-50] fix combined use of memberOf and null safe dereferencing