[issue-305] Fix JS error when non-numeric hash found