Bug#4083 - Using SQLDefaultHomedir with null home results in "No such user".
Fix handling of SQLEngine logic in mod_sql, which was contributing to
test failures when regressing Bug#4083.
Backport of fix for Bug#4083 to 1.3.5 branch.