BUG: don't set invalid flag in cbrt fallback

cbrt does not set the invalid flag on nan input as all inputs are valid.
Fix the fallback to behave the same.