Only use sqlapi configuration "host" if "domain" is undefined

We'll consider an empty string domain as valid (it's actually used
for testsuite).