Undo previous fix, it generated an extra page in pdf files.
Better fix under investigation.
The option "A" in the `Draw()` was not cleaning properly the current pad.
Silence CID 52142: check dynamic_cast NULL retval
Silence CID 52143: don't deref NULL ptr