fix panic when foreign_key == ""
Merge pull request #43 from sipin/hotfix/export

fix panic when foreign_key == ""