Fixed the saving button for the snippets that saved empty string
It's not possible to save a snippet of code if contains some errors.
Merge of develop with the snippet saving fix