Update doDelete()

in case of key is empty, doDelete trys to delete "/" and fails because it's directory