Fixed a refactor bug in the OAuth2 class
Fixed assigning variables to Smarty when the list of variables is empty