Fix to #263: _children undefined inside call to myShape.isEmpty().

Fixes issue #263 by changing isEmpty to handle the case when `_children` is undefined.