element.py: Fix dependency cache key check in non-strict mode
The None
check in _calculate_cache_key()
was working for the strict
cache key calculation but not for the strong cache key in non-strict
mode.
In certain scenarios with non-strict mode, this resulted in incorrect cache key calculation. I've added a new test to cover this.