fix empty path handling
Merge pull request #1572 from owncloud/fix_empty_path_handling

fix empty path handling