Test whether we've reached end before recursing object consumption
Merge pull request #2 from novemberborn/end-detection

Test whether we've reached end before recursing object consumption