Add a decorator to safely return None on failed xpaths.