Added nullcheck in Model test. Pmd will complain, but Jacoco will be satisfied.