win.matchMedia("only all") can be null

In Firefox win.matchMedia("only all") can be null - this stops an error being thrown.