Test if project has certain elements before accessing them (APPENG-2805)

Some projects do not have some elements, particularly the OS platforms.
Check if those elements exist before we try accessing them.
Fix typo in imagedef edit argument parsing
Enable editing targets (APPENG-2830)