fix isEmpty
Revert "Merge pull request #100 from dimagi/text-id-fix"

This reverts commit 3f1d06a659e804fdc2ac362c473522edd9b0f63b, reversing
changes made to 60a3b8818a8f7ea1e7f01494b426872acd65a6d1.
Merge pull request #120 from dimagi/isempty-hotfix

Hotfix isEmpty()
merge with master and resolve conflicts