GenericDocument: simplify error handling in ParseStream
GenericDocument: simplify error handling in ParseStream

 * unconditionally store error state of reader after parsing
 * clear stack after parsing by using a ClearStackOnExit scope guard

zhengxle/rapidjson,zhengxle/rapidjson,zhengxle/rapidjson