fixes PROBCORE-603. Trying to load an invalid model results an IllegalArgumentException.