Checking if ultisnips data present before using it

Mentioned in issue #583, but it's not the root cause.