Fix range check on parameters of tty-text-attributes-set!.