Corrects usage of Modernizr if test returns `false`

Refers #386