More correct reaction to Null in case of error.
getHostKey is robust to '\NUL' in host keys.
Cleared few extra warnings for GHC 7.6.3.