Update Spreadsheet.gs

Check for endpoint UUID first and check endpoint name after.