Ensure the pre_delete signal is only sent once on Document deletion.

Previously it was being sent twice in some circumstances -- once by
Document.delete() and once by the parent delete() method.
Merge pull request #2413 from ubernostrum/document-delete-signal

Ensure the pre_delete signal is only sent once on Document deletion.