fix #1840
Catch NPE in Bitmap.CreateBitmap and make sure the returned bitmap is not null
replace getResources() with context.getResources()
Make sure the fragment is attached to the activity when trying to update the UI in onPostsLoaded
Merge pull request #1850 from wordpress-mobile/issue/1842-IllegalStateException-PostlistsFragment

IllegalStateException in PostsListFragment
Merge pull request #1846 from wordpress-mobile/issue/1840-npe-gcmintentservice

fix #1840
fix #1851: null check getCurrentBlog()
fix compilation issue in ThemeSearchFragment
Merge pull request #1852 from wordpress-mobile/issue/1851-npe-themetabfragment

fix #1851: null check getCurrentBlog()
Merge pull request #1849 from wordpress-mobile/issue/1844-NPE-CreateThumbnail

NPE in ImageUtils.createThumbnailFromUri
Merge branch 'hotfix/3.1.2' into release/3.2

Conflicts:
	WordPress/src/main/java/org/wordpress/android/GCMIntentService.java