Fix 1**z evaluation if z is infinite

closes #8582