Fix the createOrUpdate function
Fix identation
Directly return
Use setPropertyByName
Create Update part
Merge pull request #706 from owncloud/fix_704

Fix the createOrUpdate function