Stopped false attachment file deletion when edit public doc.

Stopped false attachment file deletion when edit public doc.