Fail scenario saving if object saving returned nil (#1182).

This usually means there was a script error in the scenario saving function. Better abort instead of overwriting the existing scenario with garbage data.