fix fatal error when parentcategory is null
Merge pull request #428 from kaltura/IX-9.4.0-category-fatal-error-fix

fix fatal error when parentcategory is null