Fix opt crash of local_gpu_lazy_ifelse.

Reported by Ryan Price