FNiagaraScriptViewModel::GetStandaloneScript

If this is editing a standalone script, returns the script being edited.