(#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.
Merge pull request #1825 from jpartlow/issue/master/22079-fix-hash-array-access

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