fix smile exception on error + content-type
Merge pull request #908 from metamx/fix-smile-0.7

(port from 0.6.x) fix smile exception on error + content-type