Fixes error when trying to register a type
Remove useless check