don't fail when we can't find the <head> element