Check content not null before copying in StubContentResolver