Without the check, if the generated key with temp_zone=null and the key in repository, the program will crash because of the following line:
"sign_params->owner = ldns_rdf_new_frm_str(LDNS_RDF_TYPE_DNAME, temp_zone);“

So as this, i think we should remain the check.