Hello. To me, the sentence is correct as it is. I think the answer is that we are talking about a clause here. Dass er nicht im Begriff war = Er war nicht im Begriff, irgend etwas zu tun. With 'dass' starts a new sentence (in a way), so 'war' is the main verb (2nd position) and zu begehen is the second verb (last position). Other examples: Ich bin mir nicht sicher, dass ich in der Lage BIN, dir ZU HELFEN. Wir wissen, dass du gekommen BIST, um mit uns ZU REDEN.