don't 500 if thumbnail resizing fails due to corrupted image file

fixes http://manage.dimagi.com/default.asp?102836#614395