Added code to remove empty query rows from imported spreadsheet queries.