Convert two common plugin errors from unhandled exceptions to warnings.
Missing translation for the current primary locale.
Import failure because of some missing dependency.
Note that these handlers can be overridded in the module itself; this is just a fallback.
(cherry picked from commit 80c58f46d3b7b845e8506b8df6f4935e4d2ab90a)