Move assert(pindexNew); to above where we dereference pindexNew.
Merge pull request #4010

94c8bfb Move assert(pindexNew); to above where we dereference pindexNew. (Gregory Maxwell)