Add range check to contextual menu enabling/disabling code
Merge branch 'devel' of https://github.com/shallem/LinkHTML5SDK into devel