Invert condition
Add more upstream patches
Sync with webodf 6c0affd94e1aa9d706ea8aadd3509db04bc17235

* write correct meta-data into every document on save
* remove need for regular polling of data about sessionmember
* fix for spaces entered after a tab
* small performance improvements