Added the same error handling the beta spreadsheet controller has.