* Fix NULL dereference in binary CPU ops (#115183)
Targeted fix for https://github.com/pytorch/pytorch/issues/113037
A more fundamental one, where those functions are not even called for
empty tensors are coming later
Pull Request resolved: https://github.com/pytorch/pytorch/pull/115183
Approved by: https://github.com/drisspg, https://github.com/atalman, https://github.com/huydhn
* Fix build after conflict resolution
* Also include https://github.com/pytorch/pytorch/pull/113262 to pass the test
---------
Co-authored-by: Nikita Shulga <nshulga@meta.com>