Other mistake: When Cade is fighting Savoy, Cade jams his thumb deep into Savoy's right eye socket. A moment later Savoy is seen with no right eye injury.
Other mistake: During the introduction of Attinger, he is holding cards of the Autobots explaining what happened to them. One such card is of Ironhide, listed as last seen in Chicago. Ironhide was killed in Washington DC at NEST headquarters by Sentinel Prime in Transformers: Dark of the Moon. He didn't even participate in the Chicago battle.
Chosen answer: The battle that lead the government to hunting all transformers was in Chicago, but the incident that took Optimus out of commission was not. He'd been on the run for however long, even changing his appearance to avoid detection, when he was ambushed. Wounded, he snuck into the theater to hide before transforming one last time into vehicle form at which point he basically passed out, lost consciousness, or whatever it is robots call it when they involuntarily shut down (stasis). His aggressive reaction upon waking is simply down to his instinctive warrior reflexes immediately kicking in. All humans are a potential threat to him now, so he reacted accordingly in an instant.
Phixius ★