correct getLatestTDoc for zombie document (refs #3981)
correct viewtemplate option for zombie document (refs #3981)
correct sql filter when update user account (refs #3981)
Merge pull request #857 from Eric-Brison/3.2-I3981

Correct send document for deleted documents (closes #3981)