Fix agr_notifications record creation logic.