Prevent exception if doesn't exist any payment_term.

issue3237
review917002