Fix broken unload of view plugins