Fix for the get_data() function - the returned data structure is dependent on the errors.
Instead of a list of x, y, error 1, error 2 with the errors set to None if non-existent, only the required errors are returned.
Authored by: bugman 2010-06-28
Parent: [r11251]
Child: [r11253]