VID-1882 Fix PHP Warnings in ThumbnailHelper class