BUG: Fixes SystemError in dtype(user_defined_type).name

Adds an additional check that the "numpy." prefix exists before removing.

Closes #4357.
Merge pull request #4402 from meltingwax/meltingwax/4357

BUG: adds check in dtype.name that string starts with "numpy." prefix before removing it (Fixes #4357)