Fix undefined function when multisite is not enabled