Fixed thumbnail saving when file storage location is set.
Removed object type check.
Merge pull request #1605 from mainio/fix-update-thumbnail

Fixed thumbnail saving when file storage location is set