Fixed crash with empty folders on iOS