Fix hook_user_cancel handling with trashed entities.

Closes #3578769

Merge request reports

Loading