Added InvalidMergeException into mergeObjects operation in DataProvider.