[ALLI-3068] Fixed the first due date display to ignore discharged records. It all should be server-side, but this is just a quick fix.