Fix #2961: changed uninitialized var time to thumb_modified

Fixes branches 2.2+
Branch 2.1 runs good.