Fixed bug NullPointerException when spreadsheet name isn't set.