Harden modernizr initial check