Fix support for the Check_MK frontend

fixes #5312