Fixed bug where `handler-logic` wouldn't discard destroyed entities.