cpp: fixed bad start message check