Fixing issues found via static code analysis for IE driver. No functional changes