fixed the duplicated message sent to user bug when Wechat server retry sending the image message from user.
refined the error handling logic.