Fix undefined index completely.
Fix sending reminders (Bug #12867).