fix segmentation fault when unsupported type was passed. reported by <mcr@sandelman.ottawa.on.c>.
fix segmentation fault when unsupported type was passed.
reported by <mcr@sandelman.ottawa.on.c>.

MarginC/kame,MarginC/kame,MarginC/kame,MarginC/kame,MarginC/kame,MarginC/kame,MarginC/kame