[Native WebGPU] Handle corner cases in naive kernel. (#24438)
### Description
Handle empty input cases in the native reduce kernel.
### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->