Fix for when clipboard is empty.

Fixes issue #212.