internal: guard against a null extension string