[ZD#708471] fix TypeError in handleGetOrders