Remove isUselessObject() and its use from the Gecko script

It is extremely old, buggy, and no longer needed.