fix in expression gradients for Herb

Sometimes Sympy successfully returns a gradient that contains functions (such as re() and im()) that don't evaluate. In that case, fallback on finite difference.