Fixed bug in libraries.module. See https://drupal.org/node/2193969