Bug fix that slightly changes behavior because of changes in Django’s EmptyQuerySet