Server crashes when trying to remove a directory that does not exists

We noticed a server crash when trying to remove a directory that does not exists while issuing the cp command. Since I do not have permission to fork and make pull requests, I am sending the .patch with the changes.

chunk_storage.cpp.patch