Ill-posedness of the mean-field model of superconducting vortices and a possible regularisation