Fixing issue 1066 about entering infinite loop in the chebfun2 constructor.