In DEBUG mode, re-raise any exception we get during thumbnail generation