Fixed issue #8145: Attempting to graph a survey with 0 results returns an error.