fixing warning for trig based chebfuns.
Merge pull request #1321 from chebfun/fix-chebfun-warning

fixing warning for trig based chebfuns.