The bug isn't a bug with Flash attack, but a bug with stamina. I used to be able to do the same by trying to run when my stamina was empty. I had more trouble replicating it than you did, though.
There must be a bug that allows the stamina to drop below zero, and then reset because your stamina is invalid.