Replase undefined for null for jsx compatibility.