Fix error if session[orderid] doesn't match any orders in db