Added another null check in metrics and switched to translateAltColorCodes.