Fix promise value access in the CSS style replacing

The standard forEach does not resolve promise values like the async map

There is no styling of the generated HTML because the output looks like <style>[object Object]</style>