Add missing clang-format null pointer check..

.. and a test that triggers it in valid albeit questionable code.