BUG: Fixes SystemError when printing name of dtype with user-defined type object (Fixes #4357).

Adds an additional check that the "numpy." prefix exists in the object name before taking measures to subtract it from the string.