[MPS] Fix the crash in elu_backward() (#94923)
Fixes a crash where the inputTensor could go null and cause a crash.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/94923
Approved by: https://github.com/DenisVieriu97, https://github.com/kulinseth