Fix domain error term when checking documentation of entity parameters or predicate arguments