Ensure that extension is not null