Force usage of result of RayIntersection and PlaneIntersection, since the inout values are undefined when the functions fail.
Fail before continuing with undefined behavior.