Fix crash when converting invalid image to JPEG
Fix crash when converting invalid image to JPEG

electron/electron,seanchas116/electron,bpasero/electron,thomsonreuters/electron,Floato/electron,shiftkey/electron,seanchas116/electron,seanchas116/electron,Floato/electron,bpasero/electron,gerhardberger/electron,electron/electron,seanchas116/electron,shiftkey/electron,bpasero/electron,the-ress/electron,the-ress/electron,electron/electron,shiftkey/electron,bpasero/electron,seanchas116/electron,seanchas116/electron,gerhardberger/electron,bpasero/electron,shiftkey/electron,gerhardberger/electron,thomsonreuters/electron,thomsonreuters/electron,gerhardberger/electron,the-ress/electron,electron/electron,thomsonreuters/electron,the-ress/electron,gerhardberger/electron,thomsonreuters/electron,Floato/electron,the-ress/electron,bpasero/electron,electron/electron,bpasero/electron,gerhardberger/electron,thomsonreuters/electron,the-ress/electron,the-ress/electron,electron/electron,Floato/electron,Floato/electron,Floato/electron,electron/electron,gerhardberger/electron,shiftkey/electron,shiftkey/electron