Added error check in summary graph code in patient model so it works even without latest data in database.