[BUGFIX] warnings.txt is not removed

Change-Id: I832b0276ff1c6432ace135c25aea093670c70e9a
Fixes: #54836
Reviewed-on: https://review.typo3.org/26764
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers