more defensive checking for Modernizr