Handle NCDFE for odd envs like GAE that throw it for Unsafe.

Fixes #2304.