modules: Check current context before retrieving surrounding
There may be situations where this might get called while the currently focused context just went away (eg. after setting the text widget unsensitive). Closes: #1317
Please register or sign in to comment