resource editing: only validate the URI of resources with status approved.

Otherwise it would be impossible to save comments and other changes for resources
with temporary problems.