Merge "Added null check to get brightness config."