NULL check on clipboard sync.
NULL check on clipboard sync.

When synchronizing primary and clipboard, check if primary is empty or
null. This prevents odd behaviour in some applications that clear the
primary when deselecting text.

This also further reduces the number of false positives when the primary
clipboard is changed due to an ownership change.

burnison/clip,burnison/clip,burnison/clip