task: #3081025 Remove technical debt and complication from when doTrustedCallback() could either trigger errors or throw exceptions
By: xjm By: dww By: berdir By: alexpott By: longwave By: samuel.mortenson By: larowlan (cherry picked from commit de58972a)
Closes #3081025