Catch exceptions on malformed categories.
Merge pull request #1920 from owncloud/catch_vcategories_exceptions

Catch exceptions on malformed categories.