Fixed the issue where getting an empty value was impossible. Fixes #5697.