AAI: code dedup / fix crash:
- add getUniqueName():
- fix crash when no metal extractor unit is found