Fixed a bug where items with no children failed.
Merge pull request #4 from lawinslow/master

Fixed a bug where items with no children failed.