Add test case for JSONContainer.toMetrics() with a null valued metric