Secondary instability as cause of minor disruptions in density limit tokamak plasmas