[#801] Fix for related-item.html snippet so that all mocha tests pass