[ez][inductor][fx passes] quick fix for invalid nodes (#109234)
Summary: As title.Need to check whether node is valid before fusion
Test Plan: To add test
Differential Revision: D49241525
Pull Request resolved: https://github.com/pytorch/pytorch/pull/109234
Approved by: https://github.com/yanboliang