Adjust code to use OC.Tags

@georgehrke As mentioned in https://github.com/owncloud/core/pull/5133