Raise exception for NULL domain.

A null domain can occur if mono_domain_get() is called on a thread unattached to a domain. This makes it easier to diagnose.