Prevent SIGFAULT when GetBuildTargets() returns empty array.