Prevent SIGFAULT when GetBuildTargets() returns empty array.

Signed-off-by: Jan Nemecek <Nemecek.Jan@seznam.cz>
Changed Count() > 0 to !IsEmpty().

Signed-off-by: Jan Nemecek <Nemecek.Jan@seznam.cz>
Merge pull request #2 from EnterTheNameHere/upstream-master

Prevent SIGFAULT when GetBuildTargets() returns empty array.