fixing null ref exception when passing non-existant Guid