A perverse will can will the non-existence of God Himself. St Thomas is speaking of the normal will, which takes a right view of God, as the perverse will does not.
Of God and His Creatures: 1.81