Avoid crash with capture of nil clipboard. Refs #4.