Temporal variability of a single population can determine the vulnerability of communities to perturbations