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

check if endTime is null before comparison