Check for social_auth.backends.oauth2 before using it. Closes #574