Make GreedyPatternRewriteDriver handle failures of `materializeConstant` gracefully. Previously it was not checking whether the returned op was null and crashing. This PR handles it similarly to how OperationFolder does it.
Transforms/SideEffectUtils.h
Interface/SideEffectInterfaces.h