all() returns empty nodelist from destroyed nodes

Fixes #580