fix restframework viewset fallback (when elasticsearch is down).