Prevent crashing on pasting when clipboard is empty