Fix helm-yas-create-snippet-on-region

`helm-yas-create-snippet-on-region` won't see the yasnippet root directory because of an obsolete variable doesn't hold major-mode.