Fixing InconsistentTableError for empty query results 

This patch address the InconsistentTableError raised when no data returned in ``Esoclass.query_survey()``.