MDL-54892 core: Pass proper parameter for plugin uninstall queries