Fredric,
At least you actually ran out of gas and didn't just bump the petcock with your knee then not discover it until you'd pushed the bike home.
I happen to know a guy personally, who did that a few years ago. I've,,, I mean 'he' knows not to make that mistake again.
Tom