[clang-format][NFC] Reorder conditions

Prefer to check the local variables first before dereferencing the
pointer.

Differential Revision: https://reviews.llvm.org/D115066

GitOrigin-RevId: 4483e9b5279bc71c9da7bbb0e1524c3671493ab6
1 file changed