if statement had `isinstance` and used same kind of logic in `elif`. Actually `isinstance` isn't required at all.

```
if count >= 0:
    flash(u"Synced %d participants" % count, u"success")
elif count is None:
   flash(u"Sync details unavailable", u"success")
```