Fixing PHP Notices

Issue https://github.com/google/google-api-php-client/issues/43