Fix for issue 256. Don't try to draw non geometry objects.