Fixed Order Cancel Glitch

Fixed a glitch which would cause unhandled exceptions when trying to
cancel orders.