You made the right decision but I probably would have started anyway (and either DNFed or suffered the whole race). I just don't always see sense in those situations!

I hope you are feeling better soon!