avoid null reference exception, when framework version cannot detected