VCategories: Don't forget to save category relations if category exists.

Fixes https://github.com/owncloud/apps/issues/658