Rework a bit the "infinite" recursion detection of Gfx
Instead of counting drawForm calls, count non toplevel display calls
Remove a check from Gfx::doSoftMask which doesn't seem like it would do anything, let's hope the automatic fuzzer finds out if it does, git log says it comes from the xpdf3.02 merge
This fixes issue #1021 (closed)