Fixes #2013 --> Undefined index: host

Signed-off-by: margarett <bruno.m.alves@gmail.com>