Fixed potential NPE on certain startup orders

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