Fix few swallowed first-chance exceptions

Fix a few annoying first chance exceptions.
1. Correct null check in `GetNavigationBarConfig`
2. Use `TargetFrameworkMoniker` instead of `TargetFrameworkVersion` to deduce project target framework since the latter one is not exposed as DTE project property