It was a plot error by the writers. Superman is not immune to any magic (Although that particular blast by Toy was not exactly magic either. These had so many errors.) It's usually one of these episodes of fan service where they want to cut the popular ones some slack and provide showtime for specific characters.