Fix closure issue with mission objectives.

Fixes #6680.