light: avoid brightness conversion when raw value is unavailable
If the brightness dp is not available, trying to get the light's
brightness will result in an exception. During startup this can cause the
light to fail initialisation, and remain unavailable even if the issue
resolves itself later.
Issue #1738 (related to earlier #1513 fix for fans)