Fixed potential segfault by preventing creation of bad predicates.

Check for null Consumer is now performed regardless of operator.
Mainly because types can also be checked using equality sign.