Fix dashboardPendingApplications count

It was counting pre-denied applications erroneously.