apply patch to fix search with media module

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