Added back missing allowance of null type in registration check.
Added back missing allowance of null type in registration check.

NaosProject/Naos.Serialization,OBeautifulCode/OBeautifulCode.Serialization