I believe that, although your p'(0)=0, some higher derivatives (2nd, 3rd, 6th 8th) are not zero when x=0, and these will still be present in the 10th derivative.
I can't think of a neat way round this one, but if nothing comes to mind soon I'll try a 'less than neat' way that I think should work.