Null check in type converter

Do a null check and allow null values for nullable types in the
DefaultTypeConverter