docman: fix #559 empty trash failed due to missing docs when moving to trash