More defensive  handling of missing filename in file node.
(in line with jshint)