Make file.children null safe, closes #66