make excluding doc_types in copy_domain more robust

(I had occasion to use it)
Merge pull request #901 from dimagi/copy-domain

make excluding doc_types in copy_domain more robust