handle null emails so doesn't break