Workaround for django-nonrel failure to support isnull