reverse the order of the checking to avoid an access-past-end-of-array error
reverse the order of the checking to avoid an access-past-end-of-array error

ArcEye/MK-Qt5,araisrobo/linuxcnc,narogon/linuxcnc,ianmcmahon/linuxcnc-mirror,ArcEye/MK-Qt5,RunningLight/machinekit,cdsteinkuehler/linuxcnc,unseenlaser/linuxcnc,bobvanderlinden/machinekit,EqAfrica/machinekit,unseenlaser/machinekit,aschiffler/linuxcnc,jaguarcat79/ILC-with-LinuxCNC,RunningLight/machinekit,strahlex/machinekit,yishinli/emc2,bmwiedemann/linuxcnc-mirror,EqAfrica/machinekit,RunningLight/machinekit,ikcalB/linuxcnc-mirror,araisrobo/machinekit,ArcEye/MK-Qt5,kinsamanka/machinekit,araisrobo/machinekit,cdsteinkuehler/MachineKit,bobvanderlinden/machinekit,RunningLight/machinekit,mhaberler/machinekit,Cid427/machinekit,cnc-club/linuxcnc,ArcEye/machinekit-testing,ianmcmahon/linuxcnc-mirror,narogon/linuxcnc,ianmcmahon/linuxcnc-mirror,cdsteinkuehler/MachineKit,cdsteinkuehler/linuxcnc,ArcEye/machinekit-testing,ArcEye/MK-Qt5,araisrobo/machinekit,Cid427/machinekit,ianmcmahon/linuxcnc-mirror,araisrobo/machinekit,unseenlaser/linuxcnc,strahlex/machinekit,unseenlaser/machinekit,mhaberler/machinekit,unseenlaser/machinekit,unseenlaser/machinekit,araisrobo/machinekit,Cid427/machinekit,mhaberler/machinekit,EqAfrica/machinekit,kinsamanka/machinekit,jaguarcat79/ILC-with-LinuxCNC,cdsteinkuehler/linuxcnc,Cid427/machinekit,RunningLight/machinekit,RunningLight/machinekit,cnc-club/linuxcnc,kinsamanka/machinekit,ArcEye/machinekit-testing,ArcEye/MK-Qt5,bobvanderlinden/machinekit,narogon/linuxcnc,kinsamanka/machinekit,bmwiedemann/linuxcnc-mirror,unseenlaser/machinekit,araisrobo/machinekit,kinsamanka/machinekit,cnc-club/linuxcnc,araisrobo/linuxcnc,mhaberler/machinekit,Cid427/machinekit,mhaberler/machinekit,ArcEye/machinekit-testing,ArcEye/MK-Qt5,RunningLight/machinekit,ArcEye/machinekit-testing,jaguarcat79/ILC-with-LinuxCNC,cdsteinkuehler/linuxcnc,EqAfrica/machinekit,cdsteinkuehler/MachineKit,ikcalB/linuxcnc-mirror,ianmcmahon/linuxcnc-mirror,cdsteinkuehler/MachineKit,unseenlaser/linuxcnc,yishinli/emc2,EqAfrica/machinekit,strahlex/machinekit,unseenlaser/machinekit,bmwiedemann/linuxcnc-mirror,EqAfrica/machinekit,unseenlaser/linuxcnc,ikcalB/linuxcnc-mirror,jaguarcat79/ILC-with-LinuxCNC,jaguarcat79/ILC-with-LinuxCNC,ianmcmahon/linuxcnc-mirror,unseenlaser/linuxcnc,RunningLight/machinekit,mhaberler/machinekit,aschiffler/linuxcnc,araisrobo/machinekit,cdsteinkuehler/linuxcnc,strahlex/machinekit,ianmcmahon/linuxcnc-mirror,mhaberler/machinekit,strahlex/machinekit,cnc-club/linuxcnc,araisrobo/linuxcnc,ArcEye/MK-Qt5,Cid427/machinekit,bmwiedemann/linuxcnc-mirror,Cid427/machinekit,ArcEye/machinekit-testing,araisrobo/machinekit,ikcalB/linuxcnc-mirror,unseenlaser/machinekit,mhaberler/machinekit,aschiffler/linuxcnc,yishinli/emc2,yishinli/emc2,EqAfrica/machinekit,araisrobo/linuxcnc,EqAfrica/machinekit,kinsamanka/machinekit,araisrobo/linuxcnc,unseenlaser/machinekit,cdsteinkuehler/linuxcnc,ArcEye/MK-Qt5,aschiffler/linuxcnc,bobvanderlinden/machinekit,bobvanderlinden/machinekit,ikcalB/linuxcnc-mirror,Cid427/machinekit,kinsamanka/machinekit,narogon/linuxcnc,cdsteinkuehler/MachineKit,bobvanderlinden/machinekit,ikcalB/linuxcnc-mirror,araisrobo/machinekit,bmwiedemann/linuxcnc-mirror,cnc-club/linuxcnc,cnc-club/linuxcnc,bobvanderlinden/machinekit,aschiffler/linuxcnc,cdsteinkuehler/MachineKit,narogon/linuxcnc,kinsamanka/machinekit,bobvanderlinden/machinekit,ikcalB/linuxcnc-mirror,bmwiedemann/linuxcnc-mirror,ArcEye/machinekit-testing,ArcEye/machinekit-testing,strahlex/machinekit,cnc-club/linuxcnc,bmwiedemann/linuxcnc-mirror,strahlex/machinekit