[core-plugin] fix capture coordinate plugin

The plugin is not deleted from the vector menu when you unload it from plugin manager and the button
seems not to work properly. This patch should fix.