[BUGFIX] Flaw in resolving missing elements on deleted dependent elements to be flushed

Fixes: #1