Added /etc/host check for empty lines

Fixes #10280