Added proper search for delegation state in delegreturn.

Signed-off-by: Jeremy Bongio <jbongio@us.ibm.com>