Fix not logging changes when only an embedded doc is changed