MDL-68443 xmldb: Improve path validation on view_xml action