check if error not empty before applying container

2 jobs for improve_error_handling in 20 minutes and 8 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Test
passed Test #8476
ci-test

00:20:08

failed Test #8442
ci-test

00:07:03