CORE-5061: fixed a problem with the metadata template viewing service