Fix undefined id in create notification mail