Avoid passing NULL to strcmp() in stratum_thread()