Fixes few warnings for EmailProvider.