apply patch to media module

https://www.drupal.org/node/2171115