Fixed "Hash#to_param confused by empty hash values #13892"
Move test to the right file
Test with a blank value
Refatoring the method to avoid shot-circuit return
Add CHANGELOG entry

Closes #13909