Well, suddenly all of the empty folders in the Photos app have disappeared from my iPad. They are still there on the iPhone and the iMac. I have no idea what I or anyone else did to delete all these empty folders (over 1000). But, I'm glad it happened.

Now, if I could only have the same thing happen on my iPhone and my iMac. All the empty folders are still there on both of those devices.