Fixing performance issue in ItemRegistryImpl

Signed-off-by: Kai Kreuzer <kai@openhab.org>