panic if parse config failed

fix [issue#329](https://github.com/astaxie/beego/issues/329)