Ensure that window.matchMedia supports addListener