Fix notification timer for notifications with interval <= 0.

Fixes #5785