Set "has value" flag correctly for result parameter

Change-Id: I97eeef620ddfdda6f09abbfdf0388146d4d02e36
Merge "Set "has value" flag correctly for result parameter"