Handles errors correctly, when spreadsheet is not filled in, and when sp...

...readsheet is not present

It actually was python syntax. You have to admit that this is a neat language.