Fix a SystemError when resolve_data_type() would return None