MDL-47755 badges: Fix internal message output

Signed-off-by: Yuliya Bozhko <yuliya.bozhko@totaralms.com>