Link test: Skip optical module status checks if none present
Specifically, there wouldn't be any optical modules if the script is only testing copper links.
Without this change there are spurious failures when testing the Apollo's copper links - observed by Gianfranco
Edited by Tom Williams