Huh. My local group had agreed magebane does not work in that situation, but the rules supplement went the other way on that. Weird.
You still take damage from magebane even if the spell cast destroyed it.
Nullify does not protect against dispel since dispel targets the enchantment and not you. This causes me quite a bit of frustration while playing, so I have had to learn the nuance.