Fixing a non-multisite error

When using a non-multisite site, these functions aren't available in my case. Small patch to stop throwing errors.