Make sure original_folder isn't empty

fix #3747