(bugfix) Adds hasattr check before threadlocal.auditlog access in set_actor
(bugfix) Adds hasattr check before threadlocal.auditlog access in set_actor

middleware.set_actor was inconsistent with other methods in checking for
hasattr(threadlocal, 'auditlog')
kbussell/django-auditlog,jjkester/django-auditlog