If a custom data directory is specified using -datadir argument, its
existence is checked before the conf file is loaded. But if the conf
file then specifies a different non-existent datadir, that isn't tested,
and results in esoteric errors
Backport of core PR11829