don't throw exceptions through script engine

Task-number: QBS-452

Change-Id: I199c77236196f60cad485999f7b909976a6dd90d
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>