(#22079) Fix HashArrayAccess produces :undef when value is false

It should naturally have produced false. The test for "having value" was
wrong and equated nil with false.