Gracefully handle scripts with missing layout statements.

Generate error returns rather than error string messages.
