remove redundant try/catches in tests
add i18n to error messages.
mark function private
use exceptions for flow control and add better user facing message
test for invalid domain references
Merge pull request #3399 from dimagi/location-import-safety

Location import safety