Add protection around the current_syntax storing

This was blowing up when opening markdown, seems to be an issue with the nested
syntax highlighting for markdown->HTML->LESS.  Behavior doesn't change with
LESS files.
Merge pull request #46 from jdost/master

Add protection around the current_syntax storing
Merge pull request #1 from groenewege/master

merging upstream