#2331593 - test for Modernizr.mq

Here's a pull request that makes sure that Modernizr.mq function exists before trying to use it. Related issue on Drupal.org: https://www.drupal.org/node/2331593