fix usage of modernizr if test returns false