Fix use-after-free in function index merging code.