Don't know why it occurred initially, but I've added the includes directly to the installer rather than relying on the template hook. At the very least, this would resolve the issue with another admin disabling VaultWiki while you were in the middle of the upgrade process, which would result in the above error too.
This change will be applied to the upgrade process starting with the next upgrade.