Continuity mistake: Danny and Linda are hugging after Danny tells the boys to go pay your respects to the WWII Memorial. In the next shot they are standing apart as when he told them to go pay their respects to the memorial. (00:54:34)
Other mistake: Throughout the episode, all the interactions with the characters went from day to night except for Commissioner Reagan chaperoning his grandson's class at the museum. It stayed daylight the whole time at the museum. (00:27:14)
Answer: It's a common cop show plot device. If the police on the show always acted in the most logical way (i.e. not alerting a suspect to their presence) the show wouldn't have the opportunity for an exciting foot chase.