FELIX-2691 Apply patch by Misha Koshelev (thanks) fixing the name validity check for Resource registration