Avoid hanging when SMART test has not been initialized
Avoid hanging when SMART test has not been initialized

Otherwise the internal variable ``last_test`` stuck with the value of a
previous iteration and the value of ``remaining`` got stuck as well, making
the loop go on forever.

eReuse/workbench,eReuse/workbench,eReuse/device-inventory,eReuse/device-inventory