Fix NRE when creating project without framework specified

Fix regression of 163450c285883494bc0b50382b0ed0e5d3c9b003