Avoid setting curchan to NULL.