Fixing crash in ContactProvider2.getType when accessed too early

Unlike query() and other methods, getType() did not wait
for the provider to get initialized and would raise an NPE
during booting of the device.

Same would apply to the openAssetFile method, though it was
not actually called during boot time.

Change-Id: I502554b28ea908ff87c018c9330d6b55b1ac52bf
1 file changed