Fixed crash on empty directory node.