Don't process payments if there's no payment state in orders

Fixes #3665