MDL-39207 badges: Generate badge assertions using user's backpack email if it is set