Good catch.  I think there was a time long ago when we returned `undefined` for invalid data instead of throwing.