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.
Also remove the c parameter as a required parameter. It is not required any longer.
Merge pull request #94 from robotpony/no-current-org

No current org