The family was reunited with their dog, who went missing in the summer, while they lined up at the shelter to adopt a cat