check for NPE when logging a missing comma error;