domain: fix dispose call inside another domain

since 040057167653e8e6ce4d5a368fbc6d73bb541e28 dispose exits the domain
however if the active domain wasn't the disposed domain, then the active
domain would get out of sync (`domain.active === undefined`).

/cc @isaacs