The generate method first creates $media-$ext-$mtime.css. After that head-$media-$mtime.css is created. However the second createAsset call also applies the RewriteCss filter again, resulting in incorrect linked asset locations like fonts in our setup.
Why doe you need to create these assets twice?