Fix crash on doc fail with no extension