There a couple instances where being able to use w5 while stunned would be quite convenient: being stunned by a door trap and being stunned by gambling. Since w5 is interrupted when something dangerous happens, and you are allowed to walk in place while stunned, allowing w5 while stunned shouldn't be problematic.
See also issue
4671 (w5 in the dark).