Fix for when we have no residues or no residues are removed in pruning
Fix for when we have no residues or no residues are removed in pruning

linucks/ample,rigdenlab/ample,linucks/ample,rigdenlab/ample