Description
one side effect is, that a error page which should be shown is no longer possible to view the exception as the lifecycleListener has removed it from the map.
From the comment a few lines above the code piece in queston I guessed what was the original intention.