A note on the Kastler-Kalau-Walze theorem and the spectral action principle