Fix exception on empty DGVs