Ensure the target exists. This fixes a problem in some test environments that cause the target to be null after all tests have run and a batch may have been triggered.
Build.