Fix possible nesting of error terms when using the entity creation built-in predicates