SSP-2628 Fix GET_EARLY_ALERT_RESPONSE_DUE_COUNT to check EA close_date

Lack of this logic only affected MSSQL. Postgres version of same
function was fine.