Fix TrigonometricFunction._eval_is_rational for rational args

closes #8653