fix: make sure ensure_final_value always has a clearly defined return value

3 jobs for make-python-tests-run-independent-of-cwd in 19 minutes and 29 seconds
Status Job ID Name Coverage
  Test
passed #89144236
lint_format_safety_checks

00:03:06

passed #89144235
metadata_v0

00:04:36

passed #89144233
test

00:19:29