Fix for GPencil and Cycles Render draw type. GPencil objects were only
shown when overlays were turned on. The cause of this is an
optimization we did some to not populate any draw engine when an
external renderer was used without overlays turned off.
This will check if there is any visible GPencil object in the scene. if
so it will still perform the loop.
In the future we might want to think about having DEG statistics to
remove the additional loop. For now we reduced this second loop under
several checks so it will only be done in exceptional cases.