Fix unused variable warning in DerivativeMaterialInterface

Addresses #1777.