Fixed error when editing project, if selected sector has no subsectors