cid#705006 dereference after null check

no point in checking pDoc for null here, since we've already
dereferenced it earlier

Change-Id: If2d0268851654cb760458e6e138f0c92877adb8a
cid#705016 dereference after null check

pLB was already dereferenced in the call to GetMapPos, so no point
in checking it for null

Change-Id: I8b9c5f5e5725829fdeaa61488168d0d289b02b4c
cid#705020 dereference after null check

Change-Id: I11a208ef1648186c40249c27168fffd6a3419eff
cid#441406 dereference after null

someone already tried to fix this, but the check was too late

Change-Id: I63a8140009bc3f52ac924972a32c22603cf01971
cid#704596 dereference after null check

this code dates back to the first commit, if the null check was
valid the dereference should have triggered a bug by now.

Change-Id: I7746bd26b6760dec4db522938e40a323be9ae4d8
cid#704597 dereference after null check

this code dates back to the first commit, if the null check was
valid the dereference should have triggered a bug by now.

Change-Id: If074f68bde6a63083921f687e700321488842364
cid#704734 reference after null check

Change-Id: I54a51427347bdd363fc980db4c1ef1a1feb99177