Fix bug DNN-3825: because document type name changes to use localized value, also need update compare with localized name.