Fix KeyError while sending notifications to new users