folder: Make sure not to pol the server if the account is disconnected

Fixes #2108