Fix build for IE by mocking console

[#59424794]