fix: only cancel job when message or thread could not be found