[backport-1.5]: limitation in how helm_chart_versions can be overridden

A solution for issue #3598 (closed) needs to be backported to 1.5.x