Fixed corner case in weight update if robot and mode both are not seeing anything.