fix for `m8.def` erroring when value passed is `null` due to `typeof null === 'object'`