BUG: digitize segfaults on TypeError

The new searchsorted-based digitize introduced in #5101 segfaults
when it should raise a TypeError.
Merge pull request #5355 from jaimefrio/digitize_bug

BUG: digitize segfaults on TypeError