Dynamics of vortices followed by the collapse of ring dark solitons in a two-component Bose-Einstein condensate