Fixed a USB Error when the device was programmed

Added a check of the USB Device when a status request occured