Fixed error going undetected if device cant be queried