fix crash in generate_thumbnails_with_builtin()