Add a Null check for getSourceFileName() before writing into thread dump. Reviewed-by: cjplummer, kevinw