Detect null mail instance

During test runs the MailAppProvider can be null, so detect that first.

Bug: 7998963 Running unit tests coverage throws NPE in multiple tests
             in Gmail2

Change-Id: If068c7f3d95c82078757277e0e10696f53243134
1 file changed