if(g_form.isNewRecord()){
//Write your client script code inside this.
}
 
with this script when you create a new incident the script will not run so the field would not show as undefined.