Where does this HD limit come from? I'm not seeing it in the description of wild shape.
Usually HD limits are 2 * your caster level, not equal.