Fix 'nil' use in external.c