fix nullpointer exception when loading version page

fix nullpointer exception when loading version page, which cause by null projectType