Avoid qt traceback when clipboard has no python data object.