Do not deref gPad if null (introduced in a858a05)

Also fixes stressProof problem if started with -g.