refactor: add worker id sanity check at message handling