Fix empty predicates crashing issue