Supress file does not exists crash

Put in "does file exists" checks so that if you are pasting files which
do not exist, everything still works.
Fixed typos and supress error message

Changed num_clip to clip_num, as it should be.
If result or rest are nil, write an empty file.