Fixed bug with detecting empty objects.
Merge pull request #20 from 3martini/bug-empty-object

Fixed bug with detecting empty objects.