Fix copying messages to a folder with "empty" name e.g. "0", better error handling