fix getCalledFunction returns null, makes libcall compare invalid

Signed-off-by: xiehuc <xiehuc@gmail.com>