[BUGFIX] Prevent trying to safe when no document managers are found

Releases: 2.0
Merge pull request #7 from radmiraal/flush

[BUGFIX] Prevent trying to safe when no document managers are found