Fix error on deleting directories

Error was happening at the next iteration of the `foreach`, after having had deleted a dir. The Finder fails inside its [Iterator](http://www.php.net/manual/en/class.iterator.php) implementation because it is trying to access a nonexistent dir.