Protect against null results from getEditorScopesForPosition

Should fix #157.

Test Plan:
Crossed fingers.