A wet dream occurs during sleep without the sleeper’s deliberate choice. The quoted ruling therefore leaves the fast intact.
If a ritual bath becomes necessary afterward for prayer, that is a distinct matter. Being required to perform ghusl does not by itself mean that a fast is invalid. Rules of purification and rules of fasting answer different legal questions.