fix Issue 13504 - ICE(backend/cgelem.c 2418) with "-O -cov"

- assert failed because goal wasn't properly passed down