Fix for a NullPointerException that occurs when the hostname in the Spark Task Metrics is null

It's not clear under what circumstances this happens, but I've seen it when a job was cancelled part-way through
Merge pull request #349 from nfergu/fixnpe

Fix for a NullPointerException when hostname is null in Task Metrics