Fixed bug generating async methods with return statements inside nested blocks (#143)