Fix compute memports

This fixes 'null' error messages when computeMemPorts is called before forceMatchingWidth. Tested with referencechip.