fixes cutsel segfault for empty cut buffer (http://bugs.debian.org/727775)