Fixed datagrid removal error in !subDoc mode.