core: fix check on master active-connection failure
The previous check was never satisfied, as the device is assigned to the active-connection and realized early. Instead, check the master_ready flag, which tells if the master is ready and, therefore, if the slave has already been added to the master.