Added support for sync adapter access.

This adds support for sync adapters so that syncToNetwork (in getContentResolver().notifyChange) will default to true but when coming from sync adapter is becomes false by using makeUriFromSyncAdapter.
Add null-check here.