bug #3153: bug in host_error hook reading config

(cherry picked from commit b8e8bbd086a2f565b20e8584d4be67b07ac44a50)