Check for editingJobsData === null before trying to check length