Fix possible null value returned from GetContext
when stopping listener
Merge pull request #11 from ekovalenko-softheme/experimental/D-24329v2-5.4.0

Fix possible null value returned from GetContext