If you were trying to use your grappling hook at the time, that's one of the glitches mentioned in the link above.
Or it could have been giving you time to use your grappling hook, which it was doing for me each time I fell off in that level (I just kept pressing R2 and was able to "fly" back up).