Harry faces things with immunities all the time, it wouldn't be anything new to him to see a spell not work.
--
"intention doesn't matter? clearly your cashier degree did not require a law course." - ND to Joyrock on the legality of drinking a soda before paying