I think nodegroups would only be blank if there was an error. But the split will raise an exception when returned_parameters['nodegroups'] in the error case.