Corrected error when no data is returned.