Added patch for media module related to php warning errors.