Add promise rejection handler for custom brand image retrieval (#8397)

* Add promise rejection handler for custom brand image retrieval

* Add console log message when brand image retrieval fails

* Ensure that an error-level log message including the fetch error is rendered

Co-authored-by: Hossein <hahmadia@users.noreply.github.com>

Co-authored-by: Hossein <hahmadia@users.noreply.github.com>
(cherry picked from commit e36cc659)
2 jobs for collabora-5.37 in 9 minutes and 17 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Test
passed lint #103578

00:09:17

failed test #103579

00:05:34

 
Name Stage Failure
failed
test Test
npm ERR!     at Module.load (internal/modules/cjs/loader.js:950:32)
npm ERR! at Function.Module._load (internal/modules/cjs/loader.js:790:14)
npm ERR! at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
npm ERR! at internal/main/run_main_module.js:17:47

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-07-16T17_18_50_467Z-debug.log
Cleaning up file based variables
ERROR: Job failed: exit code 1