fixed error message for nodes with out parents being written using the File method