Adding checks on return value in FileTraverser.