CB-7670 Fixes failure when trying to fetch dependent plugin while adding platform

Fix for https://issues.apache.org/jira/browse/CB-7670