borrowed from https://bitbucket.org/david/django-storages/pull-request/96/if-entrylast_modified-is-none-set-to/diff