Make sure trajectory does not escape from chebfun2v domain.

Closes the issue chebfun/example hashtag 27.