Update index.php

Fix bug when unintalling plugin: error function don't exist