Fix for Bugreport #4294: Thumbfolder not created when upgrading.
Thanks to Kaupo Vana (kaupov) for pointing me to the right spot.