THRIFT-2343 Fix tutotial code and codegen for methods without exceptions

Patch: Jens Geyer