`yii\log\Logger::flush()` updated to reset messages before passing them to the dispatcher.
Fixes #5997: The same message may be exported twice to log targets