Check if the c param is empty before attempting to access it. It will be empty now with regular auth because currentOrg (and all associated settings) are gone.