Check that name and idx are not null
Merge pull request #39 from daisy-consortium/hotfix_named_result_npe

Check that name and idx are not null