Fix null pointer exception if clipboard is empty