datapath: Add IS_ERR_OR_NULL for backward compatibility.