Refs #12588 catch exception in rare situation and fix unittest

2 jobs for F12588T3V10MigrationScriptReplaceAliasPatterns in 2 minutes and 8 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Build
failed #9278
snapshot

00:02:08

 
  Selenium
skipped #9279
selenium
 
Name Stage Failure
failed
snapshot Build

/home/gitlab-runner/builds/z2S3Mwv6/0/typo3/qfq/typo3conf/ext/qfq/Tests/Unit/Core/Store/StoreTest.php:457

FAILURES!
Tests: 354, Assertions: 1899, Failures: 38.
Makefile:116: recipe for target 'phpunit' failed
make: *** [phpunit] Error 1
Cleaning up file based variables
ERROR: Job failed: exit status 1