check if endTime is null before comparison
Merge pull request #1437 from kaltura/IX-9.19.0-SUP-2513-hot-fix

check if endTime is null before comparison