3068: do not allow failed args to rebuild function

https://code.google.com/p/sympy/issues/detail?can=2&q=3068