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

fix smile exception on error + content-type