Functional diversity can facilitate the collapse of an undesirable ecosystem state