[full-ci][tests-only] remove throwExceptionIfNotFound parameter and unused userTriesToRestoreElementInTrash function