Folders which don't have non-directory entries as their first level children won't be added to RAR archives.
For testing you can recreate the following file structure:
folder/
folder/folder1/
folder/folder2/
folder/folder2/file.txt
If you try to add folder/ or folder/folder1/, they won't be added to RAR archive, but folder/folder2/ will.