All planes are designed to fly through thunderstorms and have to comply with safety regulations. A rainstorm is unlikely to cause damage to the aircraft. The only danger of flying during bad weather is the risk of freezing rain, but in this case, your plane will most likely be delayed until the storm passes.