Fix for nested mime  in net35 branch

The bug was fixed in the net4 branch but not in the net35 branch.