Fixed a crashing bug on startup when connection wasn't available, on detecting barcode, on sending order