It’s important you cook the filling so the mushroom stems will release all their liquid before baking. The mushroom caps will naturally release water as they bake as well. If you’re worried about the liquid creating a soggy bottom, then you can bake them on top of a wire rack over the sheet pan.