Bug 8230: (follow-up) fix detection of cancelled orders