Effect of the thermal gas component on the stability of vortices in trapped Bose-Einstein condensates