[minor] fix server error for new production order if sales order is invalid