Added null checks inside updateDonationModel