Improve NetconfDeviceCommunicator error checking