[z2505] Update code for new recast/detour return value.

(based on commit [12691] - 3b6b2e3)

Signed-off-by: Peter Camastral <petercamastral@gmx.ch>