[BUG #8691] Initialized the matchMedia polyfill on classDefined and removed all window context parameters.