Added empty ScriptResult when result is null