Updated checkout controller to handle null orders in completed page