On testing, ambassadors are able to perform diplomacy actions while a takeover is running. I remember that this wasn't allowed before.
I should point out that the ambassador is from a third party, i.e. the TO is neither from nor against his realm.
Actually the realm doing the TO can perform them as well. I would guess that the TO code simply hasn't had that limitation added in yet, or perhaps it is intentional.