fix failures in webplatform docs tests

Fixes breakage from #3429. @peterflynn can you review?