Taylor problem and onset of plasmoid instability in the Hall-magnetohydrodynamics