clipboard: check for X on every invocation

xsel and xcopy may be available even if a valid X display is not. Also,
the availability of X may change at any time, so check on each
invocation.

Closes #1509.
After some thought, I believe it's better to show the actual error message rather than risk reporting a completely wrong reason for the failure. And also better than just saying "clipboard had a problem".