admin - bug fixes in domain chooser

during the changing of which domain is being used, sometimes partition
wasn't getting set.  Updated the changeDomain code to better handle an
invalid partition (error thrown) as well as fixed the code that tried to
find the correct partition.  Also fixed the places I found where the
partition wasn't getting set correctly (which I could do more easily
once an error was being thrown).