Only compute derivatives if computing Jacobians

It's possible there are boundary functions that rely on numerical Jacobians and, thus, have not implemented the derivative. Thus, we only compute those derivatives if we are computing Jacobians.