Patch #3760: Allows a python script to call renderer when the UI is not active (thanks to Cory King for patch). Without the patch, blender will segfault since G.vd is NULL.