Fixed npe where if a nested model was null to begin with