Fix for https://github.com/owncloud/mirall/issues/476

This commit fixes bug with folders adding: https://github.com/owncloud/mirall/issues/476