Call wfThumbIncrAttemptFailures() in thumb.php on fatals

Change-Id: I3dbe07d12abdc265d377cd05bb87c837df156995
(cherry picked from commit 3e7cdbf63a6c4d2b852216c5780d7668c07cad84)