Fix reporting of missing SD or image when writing