[Analyzer Tests] Fix misc bugs in analyzer reference results updater.
[Analyzer Tests] Fix misc bugs in analyzer reference results updater.

git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@314960 91177308-0d34-0410-b5e6-96231b3b80d8
(cherry picked from commit 812f8f999cb6e572019fd0730be494c770545fe7)

apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang