apply patch to media module

https://www.drupal.org/node/2067063#comment-7966359