Changing duration to 0 in the json file causes app to be unable to start up

Changing time to invalid format like HH:mm:ss allows the app to start, but starts with no data

Expected:
Changing duration to 0 should still allow app to start, but with no data
To reproduce:
- Add a lesson
- Goto the json file and edit the duration to 0hours and minutes.
- Try starting the app, the app should not be able to start
- Change the duration back to non zero in the json file
- Change the time to HH:mm:ss format in the json file
- Start the app again. This time it runs but starts with no data.
Changing duration to 0 in the json file causes app to be unable to start up
Changing time to invalid format like HH:mm:ss allows the app to start, but starts with no data
Expected:
Changing duration to 0 should still allow app to start, but with no data
To reproduce: