Stop proceeding with constant folding if a CPU kernel is not found found (#3836)
* Stop proceeding with constant folding if a CPU kernel is not found for a node
* Fix build
* PR feedback
* Fix typo
* Refine
* Remove unnecessary header inclusion
* Refine
* Fix build
* More changes
* More changes
* More changes
* Fix CentOS build