Fix bug in setting NDN connection ready status