Fix NPE by defaulting to WARNING seveirty when none is passed in (null specifically).