CRATEIT-222 Fix problems with invalid folders not turning valid even after invalid items are removed.