Fix prefix evaluation order

In IE10 => eventname = visibilitychange but both document.msHidden and document.hidden exists.
Thus, we need to evaluate the empty prefix before the 'ms' one