check there is a cursor before retrieving it's position
check there is a cursor before retrieving it's position

(fixes a load of exceptions appearing in the ST console when using Sublimerge 3 to diff files etc.)
SublimeText/PackageDev,SublimeText/AAAPackageDev,SublimeText/AAAPackageDev