server: Handle NULL thread in send_hardware_message (Coverity).