Merge pull request #5 from jjmartin/master

Doesn't return nodes with no children when looking for records to return