Fix checkfail in QuantizedConv2D with invalid input shape dimensions
A checkfail can happen in `raw_ops.QuantizedConv2D` with invalid input shape i.e presence of `0` in input shape dimensions. Repro [gist](https://colab.sandbox.google.com/gist/SuryanarayanaY/96418887bc380751c49ce3206d6382df/nightly.ipynb).

Fixes #59927 .