[Forward-fix] check if source is None when using tensor out variants (#108700)
Summary: As title
Test Plan: Sandcastle
Reviewed By: JacobSzwejbka
Differential Revision: D49029357
Pull Request resolved: https://github.com/pytorch/pytorch/pull/108700
Approved by: https://github.com/angelayi