fix notices for undefined array keys in PHP, which are displayed in Drupal by default
Apply same change as 0199c48 to Authentication_FoafSSLARC.php to avoid including libraries multiple times