Fixed issue where app crashes when due is added/edited

Signed-off-by: Prasannajeet Pani <me@prasannajeetpani.in>