Fix hostcheck state conversion of the statusdatawriter

fixes #5449