Fix removing empty pending versions