Handle the indexerror exception on create_order

LMS-2646
Why did you change this from promises to callbacks?