Fix internal error while trying to set target platform
This development effort is to fix the internal error that occurs while trying to set target platform as described in Bug 578775. A successful completion of this work will be providing a PR that resolves the issue.