Fix test for no layout. With cgraph, we first have to check that the Agraphinfo_t record
exist before using GD_drawing.