fix admin_log url error on empty log records

After commit https://github.com/django/django/commit/369b6fab25b55ceb363ba2a8cb7e0f1a88ef8f8d the admin log shows a NoReverseMatch error if the admin log record points to an non-existent table. This commit fix that issue by returning None if there is the NoReverseMatch exception.