Tidy some stuff in webdav events

Closes #97 
if (path.length == 0) { onError(INVALID_OPERATION); return; }
?