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

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