Fix verify_grad tests after change in Theano

Also stop trying to use attributes of GradientError that are not present
any more when the error is raised.