Moved LogEntry query into try/except block.

Fixes Issue [3078](https://github.com/divio/django-cms/issues/3078).

No test because I'm not sure where to begin with that.