Replaces the NoSuchMetric exception that was replaced. The exception is replaced with MetricNotAvailable and test cases are added to prevent regression. The changes in the exceptions were introduced in: https://review.opendev.org/#/c/658127/ Change-Id: Id0f872e916aaa5dec59ed1ae6c0f653553b3fe46