backport fix for when PhEDEx return SE null
Merge pull request #5277 from amaltaro/handle-null-se

backport fix for when PhEDEx return SE null