Catch ImproperlyConfigured exception in compat.py

Apparently #803 was caused by a bug in django-oauth-plus which has been fixed in v2.1.0. But in case someone still has the old version installed, this "workarounds" the problem.