Fix the handling of !if result, avoiding null results for non 'int'.