fixes dbashford/mimosa#319, catching bad extension