Fix bug in coffeescript compiled files saving.
Add badJSON and paramMissed exceptions handling.