Revert "#1791: Handle exception while configure `host` is null"

This reverts commit bfe360db76c267a7944148e5c88c8ca958ba3938.