Fixed so the media plugin is more resilient to node removal by other filters.