Tweaked Graphics to only flush SpriteBatch if it has children to render