don't do anything if add_anchor fails
Merge pull request #4696 from minrk/etree-fail

don't do anything if add_anchor fails

invalid content shouldn't necessarily kill nbconvert