Fixed potential NPEs

Signed-off-by: Kai Kreuzer <k.kreuzer@telekom.de>
Merge pull request #88 from qivicon/hue-discovery-fix

Fixed potential NPEs