Fixed the DDBv2 `has_item` support.

Thanks to dorfsmay for the report!
Merge branch 'ddb2-fix-has-item' into develop
Fixes #2090.
Merge remote-tracking branch 'upstream/develop' into develop