After add a registration, it can be found by name

Fixed the problem that after creating new registrations they could not be found. Needed the following changes:

* Add dummy package '000'
* Avoid nil access after searching when finding such an element
* Updated unit tests without adding a special case this error