Improve sheet index error handling

Fix 'Undefined offset: -1' warning, thrown when worksheets could
not be parsed and _activeSheetIndex equals -1.
Merge pull request #432 from driebit/fix-undefined-offset

Improve sheet index error handling