On the M&P pistol if you run dry, and you insert a new mag fast/hard enough it should release the slide, and the gun should be g2g...
Could do it all day long on my M&P45 I had. I tired it tonight with my M&P9 full-size and the rounds nose dived into the feed ramp. Tried several different ammos and the same deal. I can power stroke the gun and it goes back into battery. Something I learned about this particular pistol. Is the gun broken? No. Should I rely on this method of reloading? No.
Learn your weapon system people, and stay safe.