apply patch to media module

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