Do not collect invalid key names.
More improvement of the "resource not found" message.