Fix use-after-move introduced in r217065 and caught in post-commit review by Alexey.