[inductor] Fix compile error on scan with no mask (#119555)
Fixes #119591
Currently this results in invalid syntax:
```python
tmp4 = tl.where(, tmp1, tmp2)
```
Pull Request resolved: https://github.com/pytorch/pytorch/pull/119555
Approved by: https://github.com/lezcano