Fix error when no machine is active
Fix error when no machine is active

ynotstartups/Wanhao,hmflash/Cura,Curahelper/Cura,ynotstartups/Wanhao,Curahelper/Cura,hmflash/Cura,fieldOfView/Cura,fieldOfView/Cura